<!doctype html>
<html>
<head>
	<title>Administrative Area</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link href="/css/bootstrap.css" rel="stylesheet" media="screen">
	<link href="/css/jquery-ui-1.9.0.custom.css" rel="stylesheet" media="screen">
	<link href="/css/bootstrap-responsive.css" rel="stylesheet" media="screen">
	<link rel="stylesheet/less" type="text/css" href="/css/admin.less">
	<script type="text/javascript" src="/js/less-1.3.1.min.js"></script>
	<script src="/js/jquery-1.8.3.min.js"></script>
	<script src="/js/jquery-ui-1.9.0.custom.js"></script>
	<script src="/js/jquery.validate.js"></script>
	<script src="/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="/js/admin.js"></script>
</head>
	<body>
		<div class="container">
			<div id="admin-top-nav" class="navbar row">
				<div class="span12">
					<div class="navbar-inner">
						<ul class="nav">
						<?php foreach(_cfg("admin.menu") as $link=>$url): ?>
							<li <?php echo (is_m($url['active']))?"class='active'":"";?> ><a href="<?=$url['href']?>"><?=$link;?></a></li>
						<?php endforeach; ?>
						</ul>
						<a href="/admin/index.php?mod=account&amp;act=logout" class="btn pull-right logout btn-small btn-inverse">Log Out</a>
						<div class="pull-right login-name">Hi, <b><?=$_SESSION['admin']['login'];?></b></div>
					</div>
				</div>
			</div>
			<?php include('tpl/errors.php'); ?>
			<?php echo $html;?>
		</div>
	</body>
</html>
